package com.feditory.util;

import java.util.Collection;
import java.util.List;

public class CollectionUtils {

	@SuppressWarnings("unchecked")
	public static <T> List<T> castList(List<?> list) {
		return (List<T>) list;
	}
	
	public static boolean isEmpty(Collection<?> list) {
		return list == null || list.isEmpty();
	}
	
	public static boolean isNotEmptu(Collection<?> list) {
		return !isEmpty(list);
	}
}
